﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Bll;
using AspNetCs.Common;

public partial class AjaxXml_delete_Cemetery_AddNumId : BasePage
{
    protected int id = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["id"] != null)
        {
            id = StringHelper.isNumber_int(Request["id"]);
        }
        if (id > 0)
        {
            try
            {
                Response.Write(Cemetery_AddNumId_Bll.CreateNew.delete(" id=" + id));
            }
            catch
            {
                Response.Write("-1");
                Response.End();
            }
        }
        else
        {
            Response.Write("no");
            Response.End();
        }

    }
}
